import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/roomuserlist',
    method: 'post',
    data
  })
}

export function fetchStorage(data) {
  return request({
    url: '/roomuserdetail',
    method: 'post',
    data
  })
}


export function createStorage(data) {
  return request({
    url: '/roomuseradd',
    method: 'post',
    data
  })
}

export function updateStorage(data) {
  return request({
    url: '/roomuserupdate',
    method: 'post',
    data
  })
}

export function deleteStorage(data) {
  return request({
    url: '/roomuserdelete',
    method: 'post',
    data
  })
}
